if (this.getItem('grdDeviceMtnItem').getSelectionModel().hasSelection()) {
    var rcd = this.getItem('grdDeviceMtnItem').getSelectionModel().getSelection()[0];
    var me = this;
    YX.ZbusRpc.request({
        module: 'SresSaveDeviceMaintainDetailService',
        params: {
            detailList: [{
                resId: rcd.get('resId'),
                itemCode: rcd.get('itemCode'),
                status: 'D'
            }]
        },
        showSuccess: false,
        success: function() {
            me.getStore('DeviceMaintainStore').remove(rcd);
            me.getStore('AllMaintainStore').reload();
        }
    });
}